.TH "MainFrame" 3 "Fri Dec 13 2013" "GameEngine" \" -*- nroff -*-
.ad l
.nh
.SH NAME
MainFrame \- 
.SH SYNOPSIS
.br
.PP
.PP
\fC#include <MainFrame\&.h>\fP
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBMainFrame\fP (void)"
.br
.ti -1c
.RI "\fB~MainFrame\fP (void)"
.br
.ti -1c
.RI "void \fBgameLoop\fP ()"
.br
.in -1c
.SS "Static Public Attributes"

.in +1c
.ti -1c
.RI "static const int \fBWIDTH\fP = 800"
.br
.ti -1c
.RI "static const int \fBHEIGHT\fP = 600"
.br
.ti -1c
.RI "static const char * \fBTITLE\fP = 'AxeEngine V-1\&.0'"
.br
.in -1c
.SS "Private Member Functions"

.in +1c
.ti -1c
.RI "long \fBgetTime\fP ()"
.br
.ti -1c
.RI "void \fBdestroy\fP ()"
.br
.ti -1c
.RI "void \fBstopLoop\fP ()"
.br
.ti -1c
.RI "void \fBupdate\fP ()"
.br
.ti -1c
.RI "void \fBrender\fP (float interpolation)"
.br
.ti -1c
.RI "void \fBhandleInput\fP ()"
.br
.ti -1c
.RI "void \fBchangeState\fP (\fBStateMachine\fP *level)"
.br
.ti -1c
.RI "void \fBinit\fP ()"
.br
.ti -1c
.RI "void \fBinitWithGLFW\fP ()"
.br
.ti -1c
.RI "void \fBinitGlew\fP ()"
.br
.in -1c
.SS "Static Private Member Functions"

.in +1c
.ti -1c
.RI "static void \fBVSyncOff\fP ()"
.br
.ti -1c
.RI "static void \fBVSyncOn\fP ()"
.br
.in -1c
.SS "Private Attributes"

.in +1c
.ti -1c
.RI "long \fBlastFrame\fP"
.br
.ti -1c
.RI "bool \fBrunning\fP"
.br
.ti -1c
.RI "GLFWwindow * \fBwindow\fP"
.br
.ti -1c
.RI "\fBStateMachine\fP * \fBcurrentState\fP"
.br
.ti -1c
.RI "\fBStateManager\fP * \fBmanager\fP"
.br
.in -1c
.SS "Static Private Attributes"

.in +1c
.ti -1c
.RI "static const double \fBFPS\fP = 60"
.br
.ti -1c
.RI "static int \fBtimer\fP = 0"
.br
.in -1c
.SH "Detailed Description"
.PP 
Definition at line 19 of file MainFrame\&.h\&.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "MainFrame::MainFrame (void)"

.PP
Definition at line 24 of file MainFrame\&.cpp\&.
.PP
References currentState, lastFrame, manager, NULL, running, and window\&.
.SS "MainFrame::~MainFrame (void)"

.PP
Definition at line 34 of file MainFrame\&.cpp\&.
.SH "Member Function Documentation"
.PP 
.SS "void MainFrame::changeState (\fBStateMachine\fP *level)\fC [private]\fP"

.PP
Definition at line 180 of file MainFrame\&.cpp\&.
.PP
References currentState\&.
.PP
Referenced by update()\&.
.SS "void MainFrame::destroy ()\fC [private]\fP"

.PP
Definition at line 150 of file MainFrame\&.cpp\&.
.PP
Referenced by gameLoop()\&.
.SS "void MainFrame::gameLoop ()"

.PP
Definition at line 38 of file MainFrame\&.cpp\&.
.PP
References destroy(), FPS, getTime(), handleInput(), init(), render(), running, timer, update(), and window\&.
.SS "long MainFrame::getTime ()\fC [private]\fP"

.PP
Definition at line 93 of file MainFrame\&.cpp\&.
.PP
Referenced by gameLoop()\&.
.SS "void MainFrame::handleInput ()\fC [private]\fP"

.PP
Definition at line 174 of file MainFrame\&.cpp\&.
.PP
References currentState, StateMachine::handleInput(), and window\&.
.PP
Referenced by gameLoop()\&.
.SS "void MainFrame::init ()\fC [private]\fP"

.PP
Definition at line 101 of file MainFrame\&.cpp\&.
.PP
References currentState, StateManager::initialiseState(), initWithGLFW(), and manager\&.
.PP
Referenced by gameLoop()\&.
.SS "void MainFrame::initGlew ()\fC [private]\fP"

.PP
Definition at line 141 of file MainFrame\&.cpp\&.
.PP
Referenced by initWithGLFW()\&.
.SS "void MainFrame::initWithGLFW ()\fC [private]\fP"

.PP
Definition at line 112 of file MainFrame\&.cpp\&.
.PP
References error_callback(), HEIGHT, initGlew(), NULL, TITLE, WIDTH, and window\&.
.PP
Referenced by init()\&.
.SS "void MainFrame::render (floatinterpolation)\fC [private]\fP"

.PP
Definition at line 154 of file MainFrame\&.cpp\&.
.PP
References currentState, StateMachine::renderGame(), and window\&.
.PP
Referenced by gameLoop()\&.
.SS "void MainFrame::stopLoop ()\fC [private]\fP"

.PP
Definition at line 97 of file MainFrame\&.cpp\&.
.PP
References running\&.
.SS "void MainFrame::update ()\fC [private]\fP"

.PP
Definition at line 166 of file MainFrame\&.cpp\&.
.PP
References StateManager::callStates(), changeState(), currentState, StateMachine::getKeyCode(), manager, StateMachine::stateChanger(), timer, and StateMachine::updateGame()\&.
.PP
Referenced by gameLoop()\&.
.SS "void MainFrame::VSyncOff ()\fC [static]\fP, \fC [private]\fP"

.PP
Definition at line 188 of file MainFrame\&.cpp\&.
.SS "void MainFrame::VSyncOn ()\fC [static]\fP, \fC [private]\fP"

.PP
Definition at line 184 of file MainFrame\&.cpp\&.
.SH "Member Data Documentation"
.PP 
.SS "\fBStateMachine\fP* MainFrame::currentState\fC [private]\fP"

.PP
Definition at line 38 of file MainFrame\&.h\&.
.PP
Referenced by changeState(), handleInput(), init(), MainFrame(), render(), and update()\&.
.SS "const double MainFrame::FPS = 60\fC [static]\fP, \fC [private]\fP"

.PP
Definition at line 35 of file MainFrame\&.h\&.
.PP
Referenced by gameLoop()\&.
.SS "const int MainFrame::HEIGHT = 600\fC [static]\fP"

.PP
Definition at line 23 of file MainFrame\&.h\&.
.PP
Referenced by initWithGLFW()\&.
.SS "long MainFrame::lastFrame\fC [private]\fP"

.PP
Definition at line 31 of file MainFrame\&.h\&.
.PP
Referenced by MainFrame()\&.
.SS "\fBStateManager\fP* MainFrame::manager\fC [private]\fP"

.PP
Definition at line 39 of file MainFrame\&.h\&.
.PP
Referenced by init(), MainFrame(), and update()\&.
.SS "bool MainFrame::running\fC [private]\fP"

.PP
Definition at line 32 of file MainFrame\&.h\&.
.PP
Referenced by gameLoop(), MainFrame(), and stopLoop()\&.
.SS "int MainFrame::timer = 0\fC [static]\fP, \fC [private]\fP"

.PP
Definition at line 36 of file MainFrame\&.h\&.
.PP
Referenced by gameLoop(), and update()\&.
.SS "const char * MainFrame::TITLE = 'AxeEngine V-1\&.0'\fC [static]\fP"

.PP
Definition at line 24 of file MainFrame\&.h\&.
.PP
Referenced by initWithGLFW()\&.
.SS "const int MainFrame::WIDTH = 800\fC [static]\fP"

.PP
Definition at line 22 of file MainFrame\&.h\&.
.PP
Referenced by initWithGLFW()\&.
.SS "GLFWwindow* MainFrame::window\fC [private]\fP"

.PP
Definition at line 33 of file MainFrame\&.h\&.
.PP
Referenced by gameLoop(), handleInput(), initWithGLFW(), MainFrame(), and render()\&.

.SH "Author"
.PP 
Generated automatically by Doxygen for GameEngine from the source code\&.
